﻿using CQRSFramework.Common.Components;
using CQRSFramework.Common.Configurations;
using CQRSFramework.Common.Serializer;
using Newtonsoft.Json;

namespace CQRSFramework.Common.JsonNet
{
    public static class ConfigurationExtensions
    {
        public static CommonConfiguration UseJsonNet(this CommonConfiguration configuration)
        {
            ObjectContainer.Register<IJsonSerializer, NewtonsoftJsonSerializer>();
            return configuration;
        }
    }
}
